<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3背景属性</title>
<style>
	#div1{ width:300px; height:80px; border:1px black solid;
      background:url(qianfeng.jpg) no-repeat; 
  	     background-size:100px 50px; }
	#div2{ width:300px; height:80px; border:1px black solid;
      background:url(qianfeng.jpg) no-repeat; 
  	     background-size:cover; }
	#div3{ width:300px; height:80px; border:1px black solid;
      background:url(qianfeng.jpg) no-repeat; 
  	     background-size:contain; }
</style>
</head>
<body>
<div id="div1"></div><br>
<div id="div2"></div><br>
<div id="div3"></div>
</body>
</html>
